#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int main()
{
    char n;
    scanf("%c", &n);
    printf("%d\n", n);

    return 0;
}